package com.cn.yunhe.rentcars.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

import com.cn.yunhe.rentcars.model.SelfUse;

	@Mapper
	public interface SelfUseMapper {
		/**
		 * 模糊查询获取自用信息
		 * 
		 * @param carid
		 * @return
		 */
		List<SelfUse> getSelfUse(String carid);
		
		List<SelfUse> searchSelfUse(Map<String,String> params);
		
		/**
		 * 根据用户编号查自用车辆对象信息
		 * 
		 * @param id
		 * @return
		 */
		SelfUse getSelfUseById(String recoridid);
		
		/**
		 * 批量删除用户
		 * 
		 * @param userId
		 */
		void delSelfUses(List<String> recordidList);
		
		/**
		 * 删除用户
		 * 
		 * @param userId
		 */
		void delSelfUse(String recordid);
		/**
		 * 添加自用信息
		 * 
		 * @param SelfUse
		 */
		void addSelfUse(SelfUse selfuse);
		
		/**
		 * 修改自用信息
		 * 
		 * @param SelfUse
		 */
		void editSelfUse(SelfUse selfuse);
		
		
	}
